package com.nvwa.mvp.word.controller;

import com.nvwa.mvp.word.service.ExportWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ExportWordController 类。
 *
 * @author wangjing
 * @date 2024-12-05 [wangjing] 创建。
 */
@RestController
@RequestMapping("/word")
public class ExportWordController {
    @Autowired
    private ExportWordService exportWordService;

    @GetMapping("/export")
    public ResponseEntity<byte[]> export() {
        ResponseEntity<byte[]> res = exportWordService.export();
        return res;
    }
}
